package us.gaaoc.framework.webapp.backingbeans.agent.reports;

import java.util.ArrayList;
import java.util.List;

import javax.faces.context.FacesContext;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.transaction.annotation.Transactional;

import us.gaaoc.framework.model.util.DismissedCases;
import us.gaaoc.framework.webapp.backingbeans.BaseBackingBean;

public class DismissedCaseReport extends BaseBackingBean{
	
	/** Generated Serial Version UID */
	private static final long serialVersionUID = 806617052050503841L;
	private List<DismissedCases>  findDismissedCases=new ArrayList<DismissedCases>();
	private DataModel dataTableList;
	
	 public DismissedCaseReport(){
		 this.findDismissedCases=this.getModelFacade().findDismissedCases((String) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("courtUuid"));
		 this.dataTableList= new ListDataModel();
		 this.dataTableList.setWrappedData(this.findDismissedCases);
	 
	 }
	  public DataModel getDataTableList() {
			return dataTableList;
		}
	  public void setDataTableList(DataModel dataTableList) {
			this.dataTableList = dataTableList;
		}

	  public List<DismissedCases> getFindDismissedCases() {
		  return findDismissedCases;
	  }
	  
	  public void setFindDismissedCases(List<DismissedCases> findDismissedCases) {
		  this.findDismissedCases = findDismissedCases;
	  }
	  public String back() {
		  return "back";
	 }
	  public String goToDismissedCasesPerMonth(){
			return "goToDismissedCasesPerMonth";
		}
	
}
